package com.turing.post.report.util;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 联机交易错误诊断日志
 * 
 * @author yxb
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "MchTradErrLog")
public class MchTradErrLog implements Serializable {
	/**
	 * 日志ID
	 */
	private String logId;

	/**
	 * 交易时间
	 */
	private Date tranTime;

	/**
	 * 商户号
	 */
	private String merchantNo;

	/**
	 * 商户机构号
	 */
	private String mrchBrchNo;

	/**
	 * 终端号
	 */
	private String terminalNo;

	/**
	 * 卡号
	 */
	private String cardNo;

	/**
	 * 请求报文
	 */
	private String reqXml;

	/**
	 * 异常堆栈内容
	 */
	private String excepStack;

	@Id
	@Column(name = "LOGID", nullable = false)
	public String getLogId() {
		return logId;
	}

	public void setLogId(String logId) {
		this.logId = logId;
	}

	@Column(name = "TRANTIME", nullable = false)
	public Date getTranTime() {
		return tranTime;
	}

	public void setTranTime(Date tranTime) {
		this.tranTime = tranTime;
	}

	@Column(name = "MERCHANTNO")
	public String getMerchantNo() {
		return merchantNo;
	}

	public void setMerchantNo(String merchantNo) {
		this.merchantNo = merchantNo;
	}

	@Column(name = "MRCHBRCHNO")
	public String getMrchBrchNo() {
		return mrchBrchNo;
	}

	public void setMrchBrchNo(String mrchBrchNo) {
		this.mrchBrchNo = mrchBrchNo;
	}

	@Column(name = "TERMINALNO")
	public String getTerminalNo() {
		return terminalNo;
	}

	public void setTerminalNo(String terminalNo) {
		this.terminalNo = terminalNo;
	}

	@Column(name = "CARDNO")
	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	@Column(name = "REQXML", nullable = false)
	public String getReqXml() {
		return reqXml;
	}

	public void setReqXml(String reqXml) {
		this.reqXml = reqXml;
	}

	@Column(name = "EXCEPSTACK")
	public String getExcepStack() {
		return excepStack;
	}

	public void setExcepStack(String excepStack) {
		this.excepStack = excepStack;
	}
}